package com.huasoft.test;

import java.util.List;

import com.huasoft.dao.PageCondition;
import com.huasoft.dao.UserDao;
import com.huasoft.domain.User;

public class ListUser {

	public static void main(String[] args) {
		UserDao userDao = new UserDao();
		PageCondition pageCondition = new PageCondition();
		pageCondition.setPage(2);
		List<User> user = userDao.listUser("xu", 2, 4, pageCondition);
		System.out.println(user.size());
		userDao.totalPage("xu", 2, 4, pageCondition);
		System.out.println(pageCondition.getTotalPage());
		System.out.println(user.get(0).getBirthday());
	}

}
